# 基类
extends Area2D
onready var Game = get_tree().current_scene.get_node(".")
var health:int

func _ready():
	if self.name == "JinWeiJianGuo":
		health = 4000
	pass


func _on_JinWeiJianGuo_input_event(viewport, event, shape_idx):
	if event is InputEventMouseButton and Game.use_shovel:
		if event.is_pressed() and event.button_index == BUTTON_LEFT:
			Game.reset_shovel()
			Game.use_shovel = false
			self.queue_free()
	pass
